projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c2dba
)
[XENAPI] Fix wrong vars being extracted from reading python cfg
author
Alastair Tse
<atse@xensource.com>
Fri, 6 Oct 2006 11:02:29 +0000
(12:02 +0100)
committer
Alastair Tse
<atse@xensource.com>
Fri, 6 Oct 2006 11:02:29 +0000
(12:02 +0100)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/scripts/xapi.py
patch
|
blob
|
history
diff --git
a/tools/python/scripts/xapi.py
b/tools/python/scripts/xapi.py
index 41f10aca19dd34279311198aef6b0264fd33fdda..922b47ca905aa040eca84193e3f5bbbf9ad42b49 100644
(file)
--- a/
tools/python/scripts/xapi.py
+++ b/
tools/python/scripts/xapi.py
@@
-67,9
+67,9
@@
def _stringify(adict):
return dict([(k, str(v)) for k, v in adict.items()])
def _read_python_cfg(filename):
- cfg
_globals
= {}
- execfile(filename,
cfg_globals, {}
)
- return cfg
_globals
+ cfg = {}
+ execfile(filename,
{}, cfg
)
+ return cfg
#
# Actual commands